import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'doufeng_tacit_model.dart';

class InvitingRefuseWidget extends StatefulWidget {
  InvitingRefuseWidget();

  @override
  State<InvitingRefuseWidget> createState() => _InvitingRefuseWidgetState();
}

class _InvitingRefuseWidgetState extends State<InvitingRefuseWidget> {
  @override
  Widget build(BuildContext context) {
    return Consumer<DoufengTacitModel>(builder: (context, model, child) {
      return Container(
        padding: const EdgeInsets.symmetric(
          horizontal: 34,
        ),
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: [
            const Text(
              "对方拒绝了和你进行缘分测试，TA想和你直接聊聊，快点和他聊点其他话题吧~",
              style: TextStyle(
                fontSize: 13,
                fontWeight: FontWeight.w500,
                color: Colors.white,
              ),
            ),
            const SizedBox(
              height: 37,
            ),
            Text(
              "${model.autoDismissSec}s 后自动关闭",
              style: const TextStyle(
                fontSize: 13,
                fontWeight: FontWeight.w500,
                color: Colors.white,
              ),
            )
          ],
        ),
      );
    });
  }
}
